/**
 * Created by JIANGLU009 on 2017/8/2.
 */
package com.cqfae.deploycentral.app.services;

import com.cqfae.deploycentral.app.web.request.AppInfoRequest;
import com.cqfae.deploycentral.app.web.response.IPage;
import com.cqfae.deploycentral.app.web.vo.AppInfoVo;
import com.cqfae.deploycentral.app.web.vo.SelectedVo;

import java.util.List;

public interface AppInfoService {

    /**
     * 新增
     *
     * @param appInfoVo
     * @return
     */
    public Integer add(AppInfoVo appInfoVo);

    /**
     * 编辑
     *
     * @param appInfoVo
     * @return
     */
    public Integer edit(AppInfoVo appInfoVo);

    /**
     * 删除
     *
     * @param appInfoVo
     * @return
     */
    public Integer delete(AppInfoVo appInfoVo);

    /**
     * 链表查询
     *
     * @param request
     * @return
     * @throws Exception
     */
    public List<AppInfoVo> list(AppInfoRequest request);

    /**
     * 翻页查询
     *
     * @param request
     * @return
     * @throws Exception
     */
    public IPage<AppInfoVo> listByPage(AppInfoRequest request);

    /**
     * 根据ID获得一个对象
     *
     * @param request
     * @return
     */
    public AppInfoVo getOne(AppInfoRequest request);

    /**
     * 获得所有有效的appName
     *
     * @return
     */
    public List<SelectedVo> getAppNameList(AppInfoRequest request);


}
